package com.enetiy;

import java.util.Date;

/**
 * Transaction entity. @author MyEclipse Persistence Tools
 */

public class Transaction implements java.io.Serializable {

	// Fields

	private Integer id;
	private String type;
	private Integer use;
	private Integer longTime;
	private Integer userid;
	private Date spendTime;
	private String spendCost;
	private Integer areaid;
	// Constructors

	/** default constructor */
	public Transaction() {
	}

	/** minimal constructor */
	public Transaction(String type, Integer use, Integer userid) {
		this.type = type;
		this.use = use;
		this.userid = userid;
	}

	/** full constructor */
	public Transaction(String type, Integer use, Integer longTime,
			Integer userid, Date spendTime, String spendCost,Integer areaid) {
		this.type = type;
		this.use = use;
		this.longTime = longTime;
		this.userid = userid;
		this.spendTime = spendTime;
		this.spendCost = spendCost;
		this.areaid = areaid;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getUse() {
		return this.use;
	}

	public void setUse(Integer use) {
		this.use = use;
	}

	public Integer getLongTime() {
		return this.longTime;
	}

	public void setLongTime(Integer longTime) {
		this.longTime = longTime;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}



	public Date getSpendTime() {
		return spendTime;
	}

	public void setSpendTime(Date spendTime) {
		this.spendTime = spendTime;
	}

	public String getSpendCost() {
		return this.spendCost;
	}

	public void setSpendCost(String spendCost) {
		this.spendCost = spendCost;
	}

}